package bm.com.ai.server.LLModel.constant;


/**
 * 模型类型枚举
 */
public enum ModelType {

    QWEN("通义千问"),
    DEEPSEEK("深度求索");

    private final String description;

    ModelType(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    /**
     * 从字符串获取模型类型，忽略大小写
     */
    public static ModelType fromString(String modelName) {
        if (modelName == null) {
            return null;
        }
        for (ModelType type : ModelType.values()) {
            if (type.name().equalsIgnoreCase(modelName)) {
                return type;
            }
        }
        return null;
    }
}
